package com.usian.supplier.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.usian.supplier.bean.Supplier;
import com.usian.supplier.dao.SupplierDao;
import com.usian.supplier.service.SupplierService;

@Service
public class SupplierServiceImpl implements SupplierService{
	@Autowired
	private SupplierDao supplierDao;
	
	@Override
	public List<Supplier> findsupplier(Supplier supplier) {
		// TODO Auto-generated method stub
		return supplierDao.findsupplier(supplier);
	}

	@Override
	public int addsupplier(Supplier supplier) {
		// TODO Auto-generated method stub
		return supplierDao.addsupplier(supplier);
	}

	@Override
	public int delsupplier(Integer id) {
		// TODO Auto-generated method stub
		return supplierDao.delsupplier(id);
	}

	@Override
	public Supplier findsupplierId(Integer id) {
		// TODO Auto-generated method stub
		return supplierDao.findsupplierId(id);
	}

	@Override
	public int updateupplier(Supplier supplier) {
		// TODO Auto-generated method stub
		return supplierDao.updateupplier(supplier);
	}

}
